


/** Call to prevent the next context menu popup from showing */
function StopNextContextMenuPopup() {
	if(this.StoppingNextContextMenuPopup)
		return;

	this.StoppingNextContextMenuPopup = true;

	var ContentAreaContextMenu = document.getElementById('contentAreaContextMenu');
	var _PreventEventDefault;
	function PreventEventDefault(e) {
		e.preventDefault();
		this.StoppingNextContextMenuPopup = false;
		ContentAreaContextMenu.removeEventListener('popupshowing', _PreventEventDefault, false);
	}
	_PreventEventDefault = PreventEventDefault.bind(this);
	ContentAreaContextMenu.addEventListener('popupshowing', _PreventEventDefault, false);
}
